package com.chenyaowei.product.domain;

import com.chenyaowei.common.annotation.Excel;
import com.chenyaowei.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Transient;

/**
 * 商品属性对象 cyw_product_attr
 *
 * @author 陈耀威
 * @date 2023-11-22
 */
public class CywProductAttr extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 属性id */
    private Long attrId;

    /** 属性名 */
    @Excel(name = "属性名")
    private String attrName;

    /** 是否需要检索[0-不需要，1-需要]  */
    @Excel(name = "是否需要检索[0-不需要，1-需要] ")
    private Integer searchType;

    /** 可选值列表[用逗号分隔] */
    @Excel(name = "可选值列表[用逗号分隔]")
    private String valueSelect;

    /** 属性类型[0-销售属性，1-基本属性，2-既是销售属性又是基本属性]   */
    @Excel(name = "属性类型[0-销售属性，1-基本属性，2-既是销售属性又是基本属性]  ")
    private Integer attrType;

    /** 启用状态[0 - 禁用，1 - 启用]  */
    @Excel(name = "启用状态[0 - 禁用，1 - 启用] ")
    private Integer enable;

    /** 所属分类 */
    @Excel(name = "所属分类")
    private Long catalogId;

    /** 快速展示【是否展示在介绍上；0-否 1-是】，在sku中仍然可以调整  */
    @Excel(name = "快速展示【是否展示在介绍上；0-否 1-是】，在sku中仍然可以调整 ")
    private Long showDesc;

    @Transient
    private String catName;

    public void setAttrId(Long attrId)
    {
        this.attrId = attrId;
    }

    public Long getAttrId()
    {
        return attrId;
    }
    public void setAttrName(String attrName)
    {
        this.attrName = attrName;
    }

    public String getAttrName()
    {
        return attrName;
    }
    public void setSearchType(Integer searchType)
    {
        this.searchType = searchType;
    }

    public Integer getSearchType()
    {
        return searchType;
    }
    public void setValueSelect(String valueSelect)
    {
        this.valueSelect = valueSelect;
    }

    public String getValueSelect()
    {
        return valueSelect;
    }
    public void setAttrType(Integer attrType)
    {
        this.attrType = attrType;
    }

    public Integer getAttrType()
    {
        return attrType;
    }
    public void setEnable(Integer enable)
    {
        this.enable = enable;
    }

    public Integer getEnable()
    {
        return enable;
    }

    public Long getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(Long catalogId) {
        this.catalogId = catalogId;
    }

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }

    public void setShowDesc(Long showDesc)
    {
        this.showDesc = showDesc;
    }

    public Long getShowDesc()
    {
        return showDesc;
    }

    @Override
    public String toString() {
        return "CywProductAttr{" +
                "attrId=" + attrId +
                ", attrName='" + attrName + '\'' +
                ", searchType=" + searchType +
                ", valueSelect='" + valueSelect + '\'' +
                ", attrType=" + attrType +
                ", enable=" + enable +
                ", catalogId=" + catalogId +
                ", showDesc=" + showDesc +
                ", catName='" + catName + '\'' +
                '}';
    }
}
